package chatGUI;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JTextArea;
import javax.swing.JTextPane;

import chatModel.Conversation;
/* 
 * @author Vansh and deepali
 */

public class ConversationArea extends JTextPane {

    private Conversation c;

    /**
     * This class allows us to add a JPanel to the chat window
     *
     */
    public ConversationArea(Conversation c) {
        super();
        this.c = c;
        initComponents();
    }

    private void initComponents() {
        Font font = new Font("Arial", Font.BOLD, 15);
        this.setFont(font);
        this.setText("");
        this.setForeground(Color.blue);
    }

    public Conversation getConversation() {
        return c;
    }

}
